# coding=utf-8

'''create by pbc for run server '''

import os
from time import sleep

SERVER_ADDR = '0.0.0.0'
SERVER_PORT = '80'

if __name__ == '__main__':
    # while (1):
        try:
            run_cmd = 'c:\Python35\python.exe manage.py runserver %s:%s' % (SERVER_ADDR, SERVER_PORT)
            # run_cmd = 'c:\Python34\python.exe manage.py runserver_plus %s:%s --cert serverd.crt' % (SERVER_ADDR, SERVER_PORT)
            os.system(run_cmd)
        except:
            print('run error ..')
        sleep(1)
